#include "Key.h"

unsigned char Duli_Anjian(void)
{
	unsigned char Keynumber = 0;
	if(P30 == 0) {Delay_ms(20); while(P30 == 0); Delay_ms(20); Keynumber = 7;}
	if(P31 == 0) {Delay_ms(20); while(P31 == 0); Delay_ms(20); Keynumber = 6;}
	if(P32 == 0) {Delay_ms(20); while(P32 == 0); Delay_ms(20); Keynumber = 5;}
	if(P33 == 0) {Delay_ms(20); while(P33 == 0); Delay_ms(20); Keynumber = 4;}
	return Keynumber;
}
